package com.test.blogsystem.Pojo.Require;

import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

@Data
public class LoginInfo {
    @NotNull(message = "用户名不能为空")
    @Length(max = 20, min = 2)
    private String userName;
    @NotNull(message = "密码不能为空")
    private String password;
}
